- Method in class javax.swing.text.LabelView public int getNextVisualPositionFrom (int pos, Position.Bias  b, Shape  a, int direction, Position.Bias [] biasRet) throws BadLocationException Provides a way to determine the next visually represented model location that one might place a caret. Some views may not be visible, they might not be in the same order found in the model, or they just might not allow access to some of the locations in the model.Overrides:getNextVisualPositionFrom in class ViewParameters: pos - the position to convert >= 0 - the allocated region to render intoa - the allocated region to render into - the direction from the current position that can be thought of as the arrow keys typically found on a keyboard. This may be SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, or SwingConstants.SOUTH.direction - the direction from the current position that can be thought of as the arrow keys typically found on a keyboard. This may be SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, or SwingConstants.SOUTH.Returns: the location within the model that best represents the next location visual position.Throws:BadLocationException -  - for an invalid directionIllegalArgumentException - for an invalid direction